from constants import *
import pygame, sys
from pygame.locals import *
# 窗口组件
class WINDOW :
    def __init__(self, Width, Height, Title) :
        self.Title = Title
        self.windowWidth = Width
        self.windowHeight = Height
        self.windowSize = (self.windowWidth, self.windowHeight)
    def createWindow(self) :
        scr = pygame.display.set_mode(self.windowSize)
        pygame.display.set_caption(self.Title)
        return scr